package com.zjw.nanyinge.enums;

import com.zjw.nanyinge.service.impl.TextChatServiceImpl;
import com.zjw.nanyinge.service.impl.VoiceChatServiceImpl;

public enum MessageType {

    TEXT(TextChatServiceImpl.class),
    VOICE(VoiceChatServiceImpl.class);
    private Class<?> clazz;

    MessageType(Class<?> clazz) {
        this.clazz = clazz;
    }

    public Class<?> getChatServiceClass() {
        return clazz;
    }
}
